package com.unittec.drainage.provider.manage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.unittec.drainage.provider.manage.entity.SewagePlant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Jason
 * @date 2021/8/6
 */
public interface SewagePlantMapper extends BaseMapper<SewagePlant> {

    int insert(@Param("entity") SewagePlant entity, @Param("SRID") int SRID);

    int updateById(@Param("entity") SewagePlant entity, @Param("SRID") int SRID);

    SewagePlant selectSewagePlantById(@Param("id") String id);

    List<SewagePlant> selectListByParam(@Param(Constants.WRAPPER) QueryWrapper<SewagePlant> qw);

    List<SewagePlant> validSewagePlantHasExist(@Param("geometryText") String geometryText, @Param("excludeId") String excludeId, @Param("SRID") int SRID);

}